load

Reads file, a local file the app obtained itself (the SDK never downloads), and hands its bytes to load. A file larger than 16 MiB is answered with TrustAnchorLoadProblem.TOO_LARGE before it is read into memory. A path that starts with http:// or https:// is answered with TrustAnchorLoadProblem.NOT_A_LOCAL_FILE and nothing is fetched; a java.io.File keeps such a path with its double slash collapsed to one, and that form counts too. Never throws.


As load on a file, with heldRoots for a master list's own checks; see the bytes form.


Reads stream to its end and hands the bytes to load. The stream is not closed. With more than 16 MiB in it the read stops after the cap and the answer is TrustAnchorLoadProblem.TOO_LARGE. An I/O failure is answered with TrustAnchorLoadProblem.NOT_READABLE. Never throws.


As load on a stream, with heldRoots for a master list's own checks; see the bytes form.